package com.study.mvc.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * Description: 拦截器控制层
 */
@Controller
public class TestController {

    // 拦截器控制
    @RequestMapping("/**/testInterceptor")
    public String testInterceptor() {
        return "success";
    }

    // 异常处理器
    @RequestMapping("/testExceptionHandler")
    public String testExceptionHandler() {
        System.out.println(1 / 0);
        return "success";
    }
}
